package com.包装者模式.decorator;

import com.包装者模式.Shape;

/**
 * @author: 
 * @Date: 2022/10/12
 * @Description:  适配器
 */
public abstract class ShapeDecorator implements Shape {
    protected Shape decoratedShape;

    public ShapeDecorator(Shape decoratedShape){
        this.decoratedShape = decoratedShape;
    }

    public void draw(){
        decoratedShape.draw();
    }
}
